package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 位置码信息对象 asms_own_address_asset_code
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsOwnAddressAssetCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 位置码信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long addressCodeId;
    /** 位置报修码编号 */
    @Excel(name = "位置报修码编号")
    @TableField(exist = true)
    @ApiModelProperty(value =  "位置报修码编号")
    private String code;
    /** 资产位置主键 */
    @Excel(name = "资产位置主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产位置主键")
    private Long addressId;
    /** 资产（一个码一个资产） */
    @Excel(name = "资产", readConverterExp = "一=个码一个资产")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产")
    private Long assetId;

    @TableField(exist = true)
    @ApiModelProperty(value =  "部门")
    private Long deptId;


    public static final String ADDRESS_CODE_ID="address_code_id";
    public static final String CODE="code";
    public static final String ADDRESS_ID="address_id";
    public static final String ASSET_ID="asset_id";
    public static final String DEPT_ID="dept_id";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressCodeId", getAddressCodeId())
            .append("code", getCode())
            .append("addressId", getAddressId())
            .append("assetId", getAssetId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
